#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int a, b;
    int arr1[10] = { 0 };
    int arr2[10] = { 0 };
    for (a = 0; a < 10; a++)
    {
        scanf("%d", &arr1[a]);
    }
    a = 9;
    for (b = 0; b < 10; b++)
    {
       
        arr2[b] = arr1[a];
        a--;
        printf("%d ", arr2[b]);
    }
    return 0;
}